package com.ywjt.platformbusiness.market.commongoods.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.ywjt.platformbusiness.R;

import java.util.List;

public class SettlementDeskAdapter extends BaseQuickAdapter<String, BaseViewHolder> {

    public SettlementDeskAdapter(List<String> data) {
        super(R.layout.item_settlement_desk, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, String item) {
//        ImageView nivPic = helper.getView(R.id.nivPic);
//        Glide.with(mContext).load(item.getGoodsCover()).
//                placeholder(R.mipmap.default_order).
//                apply(new RequestOptions().transform(new CenterCrop(), new RoundedCorners(6)))
//                .into(nivPic);
//        helper.setText(R.id.tvTitle, item.getGoodsName());
//        helper.setText(R.id.tvPrice, "￥" + item.getGoodsPrice());
//        helper.setText(R.id.tvNumber,"x "+item.getGoodsNumber());
//        TextView tvSku=helper.getView(R.id.tvSku);
//        String sku="";
//        for(int i=0;i<item.getGoodsSkuVOList().size();i++){
//            sku=sku+" "+item.getGoodsSkuVOList().get(i).getValue();
//        }
      //  tvSku.setText("规格："+sku);
    }
}
